package com.demo.paypalmanagement.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.paypalmanagement.model.entity.Users;
import com.demo.paypalmanagement.model.vo.UserVO;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author dayu
 * @since 2024-11-17
 */
public interface IUsersService extends IService<Users> {

  Users getUserByUsername(String username);

  boolean existsByUsername(String account);
  boolean existsByEmail(String email);

  boolean registerUser(UserVO vo);

  IPage<Users> getUsersByPage(int pageNum, int pageSize, String queryString);

  void changePassword(String pwd);

  Users getUserByEmail(String email);

  void retrievePassword(UserVO vo);

  Users getUserByEmailAndAccount(String email, String account);
}
